package net.scdx.hotel.dto;

import net.scdx.hotel.entity.Admin;

public class AdminExecution {

    private boolean success; // result of execution

    private String msg; // failure message

    private Admin admin; // successful return value

    public AdminExecution() {
    }

    public AdminExecution(boolean success, String msg, Admin admin) {
        this.success = success;
        this.msg = msg;
        this.admin = admin;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }
}
